//
//  ChangePhoneNumVC.m
//  KeleAppProject
//
//  Created by Cen Zhou on 2018/1/18.
//  Copyright © 2018年 Cen Zhou. All rights reserved.
//

#import "ChangePhoneNumVC.h"
#import "ChangeNumView.h"
@interface ChangePhoneNumVC ()

@property (nonatomic, strong) ChangeNumView *changNumView;
@end

@implementation ChangePhoneNumVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"更换手机号";
    self.view.backgroundColor = KLColor_C1;
    [self loadSubviewsOnCnagePhoneNum];
}

- (void)loadSubviewsOnCnagePhoneNum{
    [self addAlertTint];
    [self.view addSubview:self.changNumView];
    [self.changNumView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(94*HEIGHT);
        make.left.right.bottom.equalTo(self.view);
    }];
}

- (void)addAlertTint{
    UILabel *topAlertTint = [[UILabel alloc]init];
    topAlertTint.text = @"更换绑定的手机号之后";
    topAlertTint.textColor = KLColor_B4;
    topAlertTint.font = [UIFont fontWithName:@"PingFangSC-Regular" size:13*WIDTH];
    [self.view addSubview:topAlertTint];
    [topAlertTint mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.top.equalTo(self.view).offset(27*HEIGHT);
    }];
    
    UILabel *bottomAlertTint = [[UILabel alloc]init];
    bottomAlertTint.text = @"可以使用新的手机号及当前密码登录";
    bottomAlertTint.textColor = KLColor_B4;
    bottomAlertTint.font = [UIFont fontWithName:@"PingFangSC-Regular" size:13*WIDTH];
    [self.view addSubview:bottomAlertTint];
    [bottomAlertTint mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.top.equalTo(topAlertTint.mas_bottom);
    }];
    
}

- (ChangeNumView *)changNumView{
    if (!_changNumView) {
        _changNumView = [[ChangeNumView alloc]init];
        _changNumView.backgroundColor = [UIColor whiteColor];
    }
    return _changNumView;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
